package com.wtwd.wtwddevice.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wtwd.wtwddevice.mapper.AlarmPowerMapper;
import com.wtwd.wtwddevice.model.entity.AlarmPower;
import com.wtwd.wtwddevice.service.IAlarmPowerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AlarmPowerServiceImpl extends ServiceImpl<AlarmPowerMapper, AlarmPower> implements IAlarmPowerService {
    @Autowired
    private AlarmPowerMapper alarmPowerMapper;
    /**
     * 添加一条警报
     * @param alarmPower
     * @return
     */
    @Override
    public int addAlarmPower(AlarmPower alarmPower) {
        return alarmPowerMapper.addAlarmPower(alarmPower);
    }
}
